<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>后盾人</title>
  </head>
  <body>
    <input type="number" name="number" value="99" />
    <script>
      //NaN Not a Number
      // console.log(Number("houdunren"));
      // console.log(2 / "houdunren");
      // console.log(NaN == NaN);
      // console.log(Number.isNaN(2 / "houdunren"));
      // console.log(Object.is(2 / "houdunren", NaN));

      // console.log(Number(false));

      // let hd = 89;
      // console.log(Number(hd));
      // const number = document.querySelector("[name='number']").value;
      // console.log(typeof number);

      // let hd = "cms89.78houdunren";
      // console.log(parseFloat(hd));

      // let array = [1, 2, 3];
      // console.log(Number(array));
      // console.log(Number({}));

      let number = 98.557;
      console.log(number.toFixed(1));
    </script>
  </body>
</html>
